<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qt for CoolQ: CoolQ::MessageFilter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qt for CoolQ
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>CoolQ</b></li><li class="navelem"><a class="el" href="class_cool_q_1_1_message_filter.html">MessageFilter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_cool_q_1_1_message_filter-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CoolQ::MessageFilter类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>消息过滤类  
 <a href="class_cool_q_1_1_message_filter.html#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a784f510148c0565b783416c6e38151c6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">FilterType</a> { <a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0">PrivateFilter</a> = 0x01, 
<a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47">GroupFilter</a> = 0x02, 
<a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7">DiscussFilter</a> = 0x04
 }</td></tr>
<tr class="memdesc:a784f510148c0565b783416c6e38151c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息过滤器类型  <a href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">更多...</a><br /></td></tr>
<tr class="separator:a784f510148c0565b783416c6e38151c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7a323826dce89ad72648d12ef45fb3cf"><td class="memItemLeft" align="right" valign="top"><a id="a7a323826dce89ad72648d12ef45fb3cf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a7a323826dce89ad72648d12ef45fb3cf">MessageFilter</a> (<a class="el" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *parent)</td></tr>
<tr class="memdesc:a7a323826dce89ad72648d12ef45fb3cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数 <br /></td></tr>
<tr class="separator:a7a323826dce89ad72648d12ef45fb3cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a94ba2518196725c048cde8214b265b"><td class="memItemLeft" align="right" valign="top"><a id="a2a94ba2518196725c048cde8214b265b"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a2a94ba2518196725c048cde8214b265b">~MessageFilter</a> ()</td></tr>
<tr class="memdesc:a2a94ba2518196725c048cde8214b265b"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数 <br /></td></tr>
<tr class="separator:a2a94ba2518196725c048cde8214b265b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea6aeebafeeccf316e753362d015c8bd"><td class="memItemLeft" align="right" valign="top"><a id="aea6aeebafeeccf316e753362d015c8bd"></a>
<a class="el" href="class_cool_q_1_1_service_engine.html">ServiceEngine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#aea6aeebafeeccf316e753362d015c8bd">engine</a> () const</td></tr>
<tr class="memdesc:aea6aeebafeeccf316e753362d015c8bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回所属的引擎对象指针。 <br /></td></tr>
<tr class="separator:aea6aeebafeeccf316e753362d015c8bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada78697facaf814b3bd92014108aca1e"><td class="memItemLeft" align="right" valign="top"><a id="ada78697facaf814b3bd92014108aca1e"></a>
<a class="el" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#ada78697facaf814b3bd92014108aca1e">module</a> () const</td></tr>
<tr class="memdesc:ada78697facaf814b3bd92014108aca1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回所属的模块对象指针。 <br /></td></tr>
<tr class="separator:ada78697facaf814b3bd92014108aca1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a426ba8708c2173998375de184da9907e"><td class="memItemLeft" align="right" valign="top">virtual Filters&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a426ba8708c2173998375de184da9907e">filters</a> () const =0</td></tr>
<tr class="memdesc:a426ba8708c2173998375de184da9907e"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回过滤器类型  <a href="#a426ba8708c2173998375de184da9907e">更多...</a><br /></td></tr>
<tr class="separator:a426ba8708c2173998375de184da9907e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6def5522baa38068240044fd444bc53c"><td class="memItemLeft" align="right" valign="top">virtual QStringList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a6def5522baa38068240044fd444bc53c">keywords</a> () const</td></tr>
<tr class="memdesc:a6def5522baa38068240044fd444bc53c"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回关键词列表。  <a href="#a6def5522baa38068240044fd444bc53c">更多...</a><br /></td></tr>
<tr class="separator:a6def5522baa38068240044fd444bc53c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69b49f27202ae57ccac17e5df1817257"><td class="memItemLeft" align="right" valign="top"><a id="a69b49f27202ae57ccac17e5df1817257"></a>
virtual QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a69b49f27202ae57ccac17e5df1817257">description</a> () const</td></tr>
<tr class="memdesc:a69b49f27202ae57ccac17e5df1817257"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回过滤器描述信息。 <br /></td></tr>
<tr class="separator:a69b49f27202ae57ccac17e5df1817257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4874a59b51f1b5fa8fc48062697f53e8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a4874a59b51f1b5fa8fc48062697f53e8">privateMessageFilter</a> (int i, const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev)</td></tr>
<tr class="memdesc:a4874a59b51f1b5fa8fc48062697f53e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">私有消息过滤器  <a href="#a4874a59b51f1b5fa8fc48062697f53e8">更多...</a><br /></td></tr>
<tr class="separator:a4874a59b51f1b5fa8fc48062697f53e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadcfc3e5ec20b188f626a081a3e207db"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#aadcfc3e5ec20b188f626a081a3e207db">groupMessageFilter</a> (int i, const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev)</td></tr>
<tr class="memdesc:aadcfc3e5ec20b188f626a081a3e207db"><td class="mdescLeft">&#160;</td><td class="mdescRight">群组消息过滤器  <a href="#aadcfc3e5ec20b188f626a081a3e207db">更多...</a><br /></td></tr>
<tr class="separator:aadcfc3e5ec20b188f626a081a3e207db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a888af576b03bcb5cbb07ee3ce1d9d8f7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#a888af576b03bcb5cbb07ee3ce1d9d8f7">discussMessageFilter</a> (int i, const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev)</td></tr>
<tr class="memdesc:a888af576b03bcb5cbb07ee3ce1d9d8f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">讨论组消息过滤器  <a href="#a888af576b03bcb5cbb07ee3ce1d9d8f7">更多...</a><br /></td></tr>
<tr class="separator:a888af576b03bcb5cbb07ee3ce1d9d8f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_cool_q_1_1_interface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_cool_q_1_1_interface')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_cool_q_1_1_interface.html">CoolQ::Interface</a></td></tr>
<tr class="memitem:a285ff6696f33f6149830be528068fbaa inherit pub_methods_class_cool_q_1_1_interface"><td class="memItemLeft" align="right" valign="top"><a id="a285ff6696f33f6149830be528068fbaa"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_interface.html#a285ff6696f33f6149830be528068fbaa">~Interface</a> ()</td></tr>
<tr class="memdesc:a285ff6696f33f6149830be528068fbaa inherit pub_methods_class_cool_q_1_1_interface"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数 <br /></td></tr>
<tr class="separator:a285ff6696f33f6149830be528068fbaa inherit pub_methods_class_cool_q_1_1_interface"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c25d1ac03e3914718cbed74c23618eb inherit pub_methods_class_cool_q_1_1_interface"><td class="memItemLeft" align="right" valign="top"><a id="a7c25d1ac03e3914718cbed74c23618eb"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_interface.html#a7c25d1ac03e3914718cbed74c23618eb">initialize</a> ()</td></tr>
<tr class="memdesc:a7c25d1ac03e3914718cbed74c23618eb inherit pub_methods_class_cool_q_1_1_interface"><td class="mdescLeft">&#160;</td><td class="mdescRight">标准初始化函数 <br /></td></tr>
<tr class="separator:a7c25d1ac03e3914718cbed74c23618eb inherit pub_methods_class_cool_q_1_1_interface"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aee7add538452784dab7da34f55cc1173"><td class="memItemLeft" align="right" valign="top"><a id="aee7add538452784dab7da34f55cc1173"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_message_filter.html#aee7add538452784dab7da34f55cc1173">MessageFilter</a> (MessageFilterPrivate &amp;dd, <a class="el" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *parent)</td></tr>
<tr class="memdesc:aee7add538452784dab7da34f55cc1173"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数 <br /></td></tr>
<tr class="separator:aee7add538452784dab7da34f55cc1173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_cool_q_1_1_interface"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_cool_q_1_1_interface')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_cool_q_1_1_interface.html">CoolQ::Interface</a></td></tr>
<tr class="memitem:af3872b8d3be740401c3540ca99f04df9 inherit pro_methods_class_cool_q_1_1_interface"><td class="memItemLeft" align="right" valign="top"><a id="af3872b8d3be740401c3540ca99f04df9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cool_q_1_1_interface.html#af3872b8d3be740401c3540ca99f04df9">Interface</a> (InterfacePrivate &amp;dd, QObject *parent)</td></tr>
<tr class="memdesc:af3872b8d3be740401c3540ca99f04df9 inherit pro_methods_class_cool_q_1_1_interface"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数 <br /></td></tr>
<tr class="separator:af3872b8d3be740401c3540ca99f04df9 inherit pro_methods_class_cool_q_1_1_interface"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>消息过滤类 </p>
</div><div class="dynheader">
类 CoolQ::MessageFilter 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cool_q_1_1_message_filter.png" usemap="#CoolQ::MessageFilter_map" alt=""/>
  <map id="CoolQ::MessageFilter_map" name="CoolQ::MessageFilter_map">
<area href="class_cool_q_1_1_interface.html" title="通用接口类 " alt="CoolQ::Interface" shape="rect" coords="0,0,134,24"/>
</map>
 </div></div>
<h2 class="groupheader">成员枚举类型说明</h2>
<a id="a784f510148c0565b783416c6e38151c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a784f510148c0565b783416c6e38151c6">&#9670;&nbsp;</a></span>FilterType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">CoolQ::MessageFilter::FilterType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>消息过滤器类型 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0"></a>PrivateFilter&#160;</td><td class="fielddoc"><p>私有消息过滤器类型 </p>
</td></tr>
<tr><td class="fieldname"><a id="a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47"></a>GroupFilter&#160;</td><td class="fielddoc"><p>群组消息过滤器类型 </p>
</td></tr>
<tr><td class="fieldname"><a id="a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7"></a>DiscussFilter&#160;</td><td class="fielddoc"><p>讨论组消息过滤器类型 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a888af576b03bcb5cbb07ee3ce1d9d8f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a888af576b03bcb5cbb07ee3ce1d9d8f7">&#9670;&nbsp;</a></span>discussMessageFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CoolQ::MessageFilter::discussMessageFilter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>讨论组消息过滤器 </p>
<ul>
<li>i 返回命令后首个空格的位置，<em>i</em> 左侧为命令，右侧为参数。 </li>
<li>ev 消息事件本身。 <dl class="section return"><dt>返回</dt><dd>过滤返回 true；不过滤返回 false。 </dd></dl>
</li>
</ul>

</div>
</div>
<a id="a426ba8708c2173998375de184da9907e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a426ba8708c2173998375de184da9907e">&#9670;&nbsp;</a></span>filters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">MessageFilter::Filters CoolQ::MessageFilter::filters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回过滤器类型 </p>
<p>这里可以返回三种类型，表名此种过滤器过滤哪些信息。三种类型可以进行与或操作。 </p><dl class="section see"><dt>参见</dt><dd><a class="el" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6" title="消息过滤器类型 ">MessageFilter::FilterType</a> </dd></dl>

</div>
</div>
<a id="aadcfc3e5ec20b188f626a081a3e207db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadcfc3e5ec20b188f626a081a3e207db">&#9670;&nbsp;</a></span>groupMessageFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CoolQ::MessageFilter::groupMessageFilter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>群组消息过滤器 </p>
<ul>
<li>i 返回命令后首个空格的位置，<em>i</em> 左侧为命令，右侧为参数。 </li>
<li>ev 消息事件本身。 <dl class="section return"><dt>返回</dt><dd>过滤返回 true；不过滤返回 false。 </dd></dl>
</li>
</ul>

</div>
</div>
<a id="a6def5522baa38068240044fd444bc53c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6def5522baa38068240044fd444bc53c">&#9670;&nbsp;</a></span>keywords()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QStringList CoolQ::MessageFilter::keywords </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回关键词列表。 </p>
<p>以关键字开头作为命令的过滤器，可以通过此方法返回过滤关键词。 比如：禁言 @成员 ...，此处的列表应返回("禁言")。 如果返回空列表，讲作为整体过滤器使用，类似敏感词汇检测，需要整体过滤器。 </p><dl class="section note"><dt>注解</dt><dd>关键词长度不能超过 16 个汉字，或 32 个英文字母。 </dd></dl>

</div>
</div>
<a id="a4874a59b51f1b5fa8fc48062697f53e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4874a59b51f1b5fa8fc48062697f53e8">&#9670;&nbsp;</a></span>privateMessageFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CoolQ::MessageFilter::privateMessageFilter </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>ev</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>私有消息过滤器 </p>
<ul>
<li>i 返回命令后首个空格的位置，<em>i</em> 左侧为命令，右侧为参数。 </li>
<li>ev 消息事件本身。 <dl class="section return"><dt>返回</dt><dd>过滤返回 true；不过滤返回 false。 </dd></dl>
</li>
</ul>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/Users/echow/Documents/GitHub/qtassistant/CoolQPortal/<a class="el" href="_cool_q_message_filter_8h_source.html">CoolQMessageFilter.h</a></li>
<li>C:/Users/echow/Documents/GitHub/qtassistant/CoolQPortal/CoolQMessageFilter.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
